package com.chen.jwt.service;

import com.chen.jwt.mapper.UsersMapper;
import com.chen.jwt.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author xialijun
 * @version 1.0
 * @date 2023/2/13 17:34
 */

@Service
public class UserService implements User{
    @Resource
    private UsersMapper mapper;
    @Override
    public Users findUserById(int userId) {
        Users users = mapper.selectById(userId);
        System.out.println("------------>"+ users);
        return users;
    }
}
